package com.base;

import java.io.IOException;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class MapController extends AbstractController {
	private Map<String,String> mapBean = null;
	public void setMapBean(Map<String, String> mapBean) {
		this.mapBean = mapBean;
	}
	public void getEmpList(HttpServletRequest req, HttpServletResponse res)
	throws ServletException,IOException
	{
	
		
	}
	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest arg0,
			HttpServletResponse arg1) throws Exception {
		ModelAndView mav = new ModelAndView();
		mav.addObject("mapBean", mapBean);
		mav.setViewName("base/mapList");
		return mav;
	}
}
